package com.foxzzz.datamemory.controller;

import com.foxzzz.datamemory.service.DocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wujie
 * @Class HookController
 * @Description
 * @Date 2020/7/29 12:29
 */
@RestController
@RequestMapping("/doc")
public class DocController {
    @Autowired
    private DocService docService;

    @RequestMapping("/hook")
    public void hook(@RequestBody String text) {
        docService.hook(text);
    }
}
